import Building from './building.vue'
import BuildingAdd from './buildingAdd.vue'
import BuildingEdit from './buildingEdit.vue'
import BuildingSearch from './buildingSearch.vue'
import BuildingView from './buildingView.vue'

const components = [
  Building,
  BuildingAdd,
  BuildingEdit,
  BuildingSearch,
  BuildingView
]

const main = {
  install(Vue) {
    components.map((component) => {
      Vue.component(component.name, component)
    })
  }
}

export default main
